package com.agileboot.domain.news.db;

import com.agileboot.common.core.page.PageDTO;
import com.agileboot.domain.news.command.NewsInfoCommand;
import com.agileboot.domain.news.db.NewsInfo;
import com.agileboot.domain.news.query.NewsInfoQuery;
import com.agileboot.domain.news.vo.NewsInfoVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * 新闻资讯表(NewsInfo)表服务接口
 *
 * @author lx
 * @since 2023-12-29 18:00:21
 */
public interface NewsInfoService extends IService<NewsInfo> {

    void saveNewsInfo(NewsInfoCommand newsInfoCommand);

    void deleteNewsInfo(List<Long> ids);

    void updateNewsInfo(NewsInfoCommand newsInfoCommand);

    PageDTO<NewsInfoVO> queryNewsInfo(NewsInfoQuery newsInfoQuery);

    NewsInfoVO getNewsInfoDetail(NewsInfoQuery newsInfoQuery);

    void editNewsInfoStatus(NewsInfoCommand newsInfoCommand);

    List<NewsInfoVO> getNewsList();

}
